package com.alipay.sporadic.service;

import dto.DishesDTO;
import dto.OrderDTO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import vo.ResponseData;

import java.util.List;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-11-01 11:07
 **/
@FeignClient("MERCHANT-FRONT-DESK")
public interface OrderService {

    @GetMapping("/queryorderByid")
    @ResponseBody
    ResponseData<OrderDTO> queryByid(@RequestParam("orderId") String orderId);

    @GetMapping("/querybyOrderId")
    @ResponseBody
    ResponseData<List<DishesDTO>> selectByOrderIdDis(@RequestParam("orderId")String orderId);
}
